#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	double f=0.0;
	scanf("%lf", &f);
	printf("%f\n%.5f\n%e\n%g", f, f, f, f);
	return 0;
}